<?php

class AdModel extends DBModel
{
	protected $_table = '{{adv}}';
	protected $_id = 'adsid';
	
	public function getListByApId($apid)
	{
		$where['condition'] = 'apid = :apid';
		$params = array(':apid' => $apid);
		return $this->findAll($where, $params);
	}
}